package com.chainshop.procurement.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data

public class GoodsTree  implements Serializable {

    private static final long serialVersionUID = 1L;
    private String label;
    private String value;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<GoodsTree> children;

    public GoodsTree() {
    }

    public GoodsTree(String label, String value, List<GoodsTree> children) {
        this.label = label;
        this.value = value;
        this.children = children;
    }
}
